<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="<?php echo isset($this->metakey) ? $this->metakey : ''; ?>" />
    <meta name="description" content="<?php echo isset($this->metadesc) ? $this->metadesc : '';?>" />
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/reset.css" type="text/css" media="all"/>
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/base.css" type="text/css" media="all"/>
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/estyle.css" type="text/css" media="all"/>
    <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/e-front-panel.css" type="text/css" media="all"/>

   
    <?php
	//Yii::app ()->clientScript->registerScriptFile ( '/js/jquery.js' );
    Yii::app()->clientScript->registerCoreScript('jquery');
	Yii::app ()->clientScript->registerScriptFile ( '/js/jquery.mousewheel.min.js' );
	Yii::app ()->clientScript->registerScriptFile ( '/js/jScrollPane.js' );
    Yii::app ()->clientScript->registerScriptFile ( '/js/base.js' );
	Yii::app ()->clientScript->registerScriptFile ( '/js/e-front-panel.js' );
	Yii::app ()->clientScript->registerScriptFile ( '/js/cms/ckeditor/ckeditor.js' );
	?>
    <!--[if IE]>
        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" type="text/css" media="all"/>
        <![endif]-->
    <!--[if IE 6]>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.pngFix.js"></script>
    <![endif]-->
</head>
<body>
<?php if(Yii::app()->user->role == 'admin') : ?>
    <?php $this->widget('application.components.widgets.EFrontPanel',array('params'=>array(
    	'table'	=>	isset($this->table) ? $this->table : '',
    	'metaurl'	=>	isset($this->metaurl) ? $this->metaurl : '',
    	'metatitle'	=>	isset($this->metatitle) ? $this->metatitle : '',
    	'metakey'	=>	isset($this->metakey) ? $this->metakey : '',
    	'metadesc'	=>	isset($this->metadesc) ? $this->metadesc : '',
    ))); ?>
<?php endif ?>
<div id="conteiner_body">
    <!-- header -->
    <div id="header_cont">
        <div id="header" class="d_t">
            <!-- logotip -->
            <div class="logo_block fl_l"><a href="/" class="d_b"><img src="/images/logo.png" alt="<?php echo Yii::app()->params['sitename']?>"/></a></div>
            <!-- logotip -->
            <div class="header-right fl_r">
                <div class="headr-left fl_l">
                    <div class="soc-icons d_t">
                        <div class="soci-block fl_r m_r_n"><a href="<?php echo Yii::app()->params['rss']?>" class="d_b"><img src="/images/soc4.png" alt=""/></a></div>
                        <div class="soci-block fl_r"><a href="<?php echo Yii::app()->params['tw']?>" class="d_b"><img src="/images/soc2.png" alt=""/></a></div>
                        <div class="soci-block fl_r"><a href="<?php echo Yii::app()->params['fb']?>" class="d_b"><img src="/images/soc3.png" alt=""/></a></div>
                        <div class="soci-block fl_r"><a href="<?php echo Yii::app()->params['vk']?>" class="d_b"><img src="/images/soc1.png" alt=""/></a></div>
                    </div>
                    <div class="headr-l-button"><div class="headr-l-button-shadow"></div><div class="borderr-ie-partia"><a href="#bl-zayavka" ><?php echo Yii::t('main','Вступить в партию')?></a></div></div>
                </div>
                <div class="headr-right fl_r">
	                <?php
				        $this->widget('application.components.widgets.LanguageSelector');
				    ?>
                </div>
            </div>
        </div>
    </div>
   
   	
    <a href="<?php echo Yii::app()->createUrl('e/url', array('url_id'=>143))?>">LOL</a>
    <!-- menu -->
    <div class="menu-cont">
        <div class="menuc-block">
            <div id="header_menu">
                <div id="menu_left"></div>
                <div id="menu_right"></div>
                <div id="header_menu_block" class="d_t">
					<?php 
				        $this->widget('application.components.widgets.EMenu', array('menu_id'=>'1','id'=>'menu'));
				    ?>
                    <div class="search-bl d_in fl_r">
                        <form action="<?php echo Yii::app()->createUrl('site/search')?>">
                            <input type="text" class="form-vert" placeholder="<?php echo Yii::t('main','Поиск')?>" name="search">
                            <button type="submit" class="form-vert">отправить</button>
                        </form>
                    </div>
                </div>
            <div class="clear"></div>
            </div>
        </div>
    </div>
    <!-- content -->
    <div id="content_cont">
        <div id="content">
            <div class="content d_t m_b9">
                <?php echo $content; ?>
            </div>
            <div class="bl-facep">
            	<?php 
			        $this->widget('application.components.widgets.ItemsCarousel', array('category'=>'7'));
			    ?>
            </div>
        </div>
    </div>
    <div id="clearfooter"></div>
</div>
<!-- footer -->
    <div id="footer_cont">
        <div id="footer" class="d_t">
            <div class="foot-left fl_l">2013 © <?php echo Yii::app()->params['sitename']?></div>
            <div class="foot-right fl_r">Сделанно в «<a href="http://egidasoft.com/">EgidaSoft</a>»</div>
            <div class="foot-center">
                <div><span class="d_in"><i class="icons icons-tel"></i><?php echo Yii::app()->params['footer_phone']?></span></div>
                <div><span class="d_in"><i class="icons icons-email"></i><?php echo Yii::app()->params['footer_mail']?></span></div>
            </div>
        </div>
    </div>
    <div class="overlay"></div>
    <div class="bl-zayavka">
        <div class="close"><i class="icons icons-close"></i><?php echo Yii::t("main", "Закрыть")?></div>
        <div class="blz-block">
        	<?php 
		        $this->widget('application.components.widgets.FormWidget');
		    ?>
        </div>
    </div>
    
</body>
</html>